const { defineConfig } = require("@vue/cli-service");
// const path = require("path");

module.exports = defineConfig({
  transpileDependencies: true,
  // chainWebpack: (config) => {
  //   config.resolve.alias.set("@element", path.resolve(__dirname, "src/components/element"));
  // },
  configureWebpack: {
    // 原有接触上配置webpack
    resolve: {
      alias: {
        "@element": "@/components/element",
      },
    },
  },
});
